﻿function Validate() {
    var obj_WarehouseNo = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtWarehouseNo_I');
    var obj_WarehouseName = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtWarehouseName_I');
    var obj_WarehouseAdd = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtWarehouseAdd_I');

    if (obj_WarehouseNo.value == "") {
        alert('Kindly Specify Warehouse No.')
        obj_WarehouseNo.focus();
        return false;
    }
    if (obj_WarehouseName.value == "") {
        alert('Kindly Specify Warehouse Name.')
        obj_WarehouseName.focus();
        return false;
    }
    if (obj_WarehouseAdd.value == "") {
        alert('Kindly Specify Warehouse Address.')
        obj_WarehouseAdd.focus();
        return false;
    }

    return true;
}